﻿@page "/StepLines/Area"
@using LiveChartsCore.SkiaSharpView.Blazor
@using LiveChartsCore.SkiaSharpView
@using LiveChartsCore
@using LiveChartsCore.SkiaSharpView.Painting
@using SkiaSharp

<CartesianChart
	Series="Series"
	DrawMarginFrame="DrawMarginFrame">
</CartesianChart>

@code {
    private ISeries[] Series { get; set; }
    private DrawMarginFrame DrawMarginFrame { get; set; }

    protected override void OnInitialized()
    {
        var values = new double[] { -2, -1, 3, 5, 3, 4, 6 };

        Series = new ISeries[]
        {
            new StepLineSeries<double>
            {
                Values = values,
                Fill = new SolidColorPaint(SKColor.Parse("#6495ED")),
                Stroke = null,
                GeometryFill = null,
                GeometryStroke = null
            }
        };

        DrawMarginFrame = new DrawMarginFrame
        {
            Stroke = new SolidColorPaint(SKColor.Parse("#64b4b4b4")),
            Fill = new SolidColorPaint(SKColor.Parse("#32dcdcdc"))
        };
    }
}
